package com.galaxy.samson.staff.page;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.Button;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.TextField;


/**
 * Created by Samson-inn Group.
 * Author: madasamy
 * Date: 3/6/12
 * Time: 7:21 PM
 */
public class StaffPage extends WebPage 
{

    public StaffPage()
    {
        add(new Label("staffPage", "AddStaff page"));
        add(createdStaffForm());

    }

    private Form createdStaffForm() 
    {
        Form form = new Form("staffForm");
        form.add(createdStaffNameTextField());
        form.add(createdDepartmentTextField());
        form.add(createDesignationTextField());
        form.add(createPhoneNumberTextField());
        form.add(new Button("submit"));
        return form;
    }

    private TextField createdStaffNameTextField()
    {
        TextField textField = new TextField("staffNameTextField");
        return textField;
    }

    private TextField createdDepartmentTextField()
    {
        TextField textField = new TextField("departmentTextField");
        return textField;
    }

    private TextField createDesignationTextField()
    {
        TextField textField = new TextField("designationTextField");
        return textField;
    }
    
    private TextField createPhoneNumberTextField() 
    {
        TextField textField = new TextField("phoneNumberTextField");
        return textField;
    }
}
